You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TRngStream Class > TRngStream Methods > TRngStream.RandomGeometric Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TRngStream.RandomGeometric Method

Generates an array of integer samples distributed Geometrically.

Syntax
C#
Visual Basic
public void RandomGeometric([In] TMtxVecInt Dst, [In] double p);

Returns random numbers distributed according to the Geometric probability density function (PDF) as defined here Probabilities.GeometricPDF. The number of samples generated is defined with the Dst.Length parameter. Dst is automatically resized to store 32bit integers, if needed. The result is an array of integers.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!